package com.itmei.exceldemo.domain;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import lombok.Data;

/**
 * @Author itmei
 * @Date 2024/4/13 19:29
 * @description: 测试类
 * @Title: TestData
 * @Package com.itmei.exceldemo.domain
 */
@Data
public class UserInfo {
    /**
     * 姓名
     */
    @ExcelProperty(value = "姓名",index = 0)
    private String name;
    /**
     * 性别
     */
    @ExcelProperty(value ="性别",index = 1)
    private String sex;
    /**
     * 年龄
     */
    @ExcelProperty(value ="年龄",index = 2)
    private Integer age;
    /**
     * 忽略这个字段 ExcelIgnore添加后导出和导入都会过滤这个字段
     */
    //@ExcelIgnore()
    @ExcelProperty(value ="手机",index = 3)
    private String phone;
}
